﻿package com.ufenlei.LTS{
	 public class TestingGroup extends ScrolledBlock{
		private var _id:uint;
		private var _title:String; 
		private var _type:uint;
		private var _soundURL:String;
		private var _testingItemList:Array;
		public static const TEXT:int = 0;
		public static const IMAGE:int = 1;
		public function TestingGroup(Uid:uint,Stitle:String,SsoundURL:String, w:uint = 400,h:uint=300, Utype:uint = 0){
			super(w,h);
			_id = Uid;
			_title = Stitle;
			_type = Utype;
			_soundURL = SsoundURL;
			_testingItemList = new Array();
		}
		public function add(ti:TestingItem):void{
			_testingItemList.push(ti);
			var tv:TestingItemView = new TestingItemView(ti);
			this.addContent(tv,10);
		}
		public function get list():Array{
			return this._testingItemList;
		}
		public function get title():String{
			return _title;
		}
		public function get id():uint{
			return _id;
		}
		public function get soundURL():String{
			return _soundURL;
		}
	 }
}